import request from '@/utils/request'

// 查询司机结算列表
export function driverSettlementList(query) {
  return request({
    url: '/charteredBus/order/driverSettlementList',
    method: 'get',
    params: query
  })
}

// 查询财务账单详细
export function getSettlementDetail(settlementId) {
  return request({
    url: '/charteredBus/order/driverSettlementInfo/'+settlementId,
    method: 'get',
  })
}


export function driverSettlementConfirm(data) {
  return request({
    url: '/charteredBus/order/driverSettlementConfirm',
    method: 'post',
    data: data
  })
}

export function driverSettlementCount(query) {
  return request({
    url: '/charteredBus/order/driverSettlementCount',
    method: 'get',
    params: query
  })
}

// 查询司机订单列表
export function driverOrderList(query) {
  return request({
    url: '/charteredBus/order/driverOrderList',
    method: 'get',
    params: query
  })
}

